Correct draw_box() function to check detail for "notebook". This fixes a
authorCody Russell <bratsche@gnome.org>
Mon, 27 Aug 2007 16:27:38 +0000 (16:27 +0000)
committerCody Russell <bratsche@src.gnome.org>
Mon, 27 Aug 2007 16:27:38 +0000 (16:27 +0000)
2007-08-27  Cody Russell  <bratsche@gnome.org>

        * modules/engines/ms-windows/msw_style.c: Correct draw_box()
        function to check detail for "notebook".  This fixes a problem
        where notebooks without visible headers were not styling
        correctly. (#470033, Daniel Atallah and Cody Russell)

svn path=/trunk/; revision=18689

ChangeLog
modules/engines/ms-windows/msw_style.c

index e1ea4577b9d0bd71d571d13ecf2a4b69f3b21df1..7b948325ad313e2ffaf1797bf9e474c1304e8308 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-27  Cody Russell  <bratsche@gnome.org>
+
+       * modules/engines/ms-windows/msw_style.c: Correct draw_box()
+       function to check detail for "notebook".  This fixes a problem
+       where notebooks without visible headers were not styling
+       correctly. (#470033, Daniel Atallah and Cody Russell)
+
 2007-08-23  Cody Russell  <bratsche@gnome.org>
 
        * gtk/gtkwindow.c (gtk_window_group_remove_window: Use the
index bc490a75fdbac818dcd6fad2467c7f71267ab9d7..2b0e822b183400341bdf45af10d7cd309b8b4839 100755 (executable)
@@ -2155,6 +2155,17 @@ draw_box (GtkStyle * style,
                 return;
             }
        }
+    else if (detail && !strcmp (detail, "notebook") && GTK_IS_NOTEBOOK (widget))
+       {
+           GtkNotebook *notebook = GTK_NOTEBOOK (widget);
+
+           if (xp_theme_draw (window, XP_THEME_ELEMENT_TAB_PANE, style,
+                              x, y, width, height, state_type, area))
+               {
+                   return;
+               }
+       }
+
     else
        {
            const gchar *name = gtk_widget_get_name (widget);